package com.cloud.business.service.sys;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloud.business.entity.sys.SysAttach;
import com.cloud.business.model.commonvm.DeletePost;
import com.cloud.business.model.commonvm.ResultMsg;
import com.cloud.business.model.sys.sysattachvm.SysAttachQueryModel;

/**
 * <p>
 * 系统附件表 服务类
 * </p>
 *
 * @author dh
 * @since 2020-03-25
 */
public interface ISysAttachService {

    /**
     * 分页列表
     *
     * @param sysAttachQueryModel
     * @param page
     * @param msg
     * @throws Exception
     */
    void getListByPage(SysAttachQueryModel sysAttachQueryModel, IPage<SysAttach> page, ResultMsg msg) throws Exception;

    /**
     * 创建
     *
     * @param sysAttach
     * @param msg
     * @return
     * @throws Exception
     */
    Integer create(SysAttach sysAttach, ResultMsg msg) throws Exception;

    /**
     * 更新
     *
     * @param sysAttach
     * @param msg
     * @return
     * @throws Exception
     */
    Integer update(SysAttach sysAttach, ResultMsg msg) throws Exception;

    /**
     * 获取单条
     *
     * @param operationId
     * @param objectId
     * @param msg
     * @return
     * @throws Exception
     */
    SysAttach getById(Integer operationId, Integer objectId, ResultMsg msg) throws Exception;

    /**
     * 批量删除
     *
     * @param deletePost
     * @param msg
     * @return
     * @throws Exception
     */
    int deleteByList(DeletePost deletePost, ResultMsg msg) throws Exception;

}
